package io.lkt.modules.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.lkt.common.utils.PageUtils;
import io.lkt.common.utils.Query;
import io.lkt.commons.dynamic.datasource.annotation.DataSource;
import io.lkt.modules.sys.dao.BMaterialInfoDao;
import io.lkt.modules.sys.dao.BVideoInfoDao;
import io.lkt.modules.sys.dao.HeadlineTitleInfoDao;
import io.lkt.modules.sys.dao.SpiderTaskDao;
import io.lkt.modules.sys.entity.*;
import io.lkt.modules.sys.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("bMaterialInfoService")
public class BMaterialInfoServiceImpl implements BMaterialInfoService {

    @Autowired
    private BMaterialInfoDao materialInfoDao;


    @Override
    public List<BArticleInfoEntity> queryList(Map<String, Object> map) {
        return this.materialInfoDao.queryList(map);
    }

    @Override
    public Integer queryTotal(Map<String, Object> map) {
        return this.materialInfoDao.queryTotal(map);
    }

    @Override
    public void insertMaterialImg(Integer id, String materialImgUrls) {
        this.materialInfoDao.insertMaterialImg(id,materialImgUrls);
    }

    @Override
    public String selectMaterialImgUrl(Integer id) {
        return this.materialInfoDao.selectMaterialImgUrl(id);
    }

    @Override
    public Integer updateMaterialImg(Integer id, String materialImgUrls) {
        return this.materialInfoDao.updateMaterialImg(id,materialImgUrls);
    }
}
